class CreateIntegrationParameters < ActiveRecord::Migration
  def self.up
    create_table :integration_parameters do |t|
      t.integer :simulation_id, :null => false
    	t.string :algorithm_type
    	t.float :start_time
    	t.float :end_time
    	t.string :output_interval
    	t.float :time_step
    	t.string :accuracy
    	t.string :stop_after_close_encounter
    	t.string :allow_collisions
    	t.string :time_format
    	t.string :time_relative
    	t.string :output_precision
    	t.string :relativity
    	t.string :user_force
    	t.string :collision_fragmentation
    	t.integer :particles_per_simulation
    	t.float :ejection_distance
    	t.float :solar_radius
    	t.float :hill_radii
    	t.float :timesteps_between_data_dumps
    	t.float :timesteps_between_periodic_effects
      t.timestamps
    end
  end

  def self.down
    drop_table :integration_parameters
  end
end
